<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.qiqianyi.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 小夏 < 449134904@qq.com>
// +----------------------------------------------------------------------
namespace app\company\validate;

use think\Validate;

class MemberGroupValidate extends Validate
{
    protected $rule = [
        'name' => 'require',
        'owner_name' => 'require',
        'owner_wx' => 'require',
        'owner_phone' => 'require',
        'person_count' => 'require|number',

    ];
    protected $message = [
        'name.require' => '名称不能为空',
        'owner_name.require'  => '群主姓名不能为空',
        'owner_wx.require' => '群主微信不能为空',
        'owner_phone.require' => '群组电话不能为空',
        'person_count.require' => '群人数不能为空',
        'person_count.number' => '群人数必须是数字',
    ];

}